package com.huilan.etl.test;

/**
 * @author ghy
 * @date 2018-12-29 17:02
 **/
public class BResponsibility implements IResponsibility {
    @Override
    public void doSomething(String input, IResponsibility responsibility) {
        if ("B".equals(input)) {
            // TODO do something
            System.out.println("B does something");
            return;
        }
        //当前没法处理，回调回去，让下一个去处理
        responsibility.doSomething(input, responsibility);
    }
}
